import request from '@/utils/request'

// 查询图库案例说明列表
export function listCase(query) {
  return request({
    url: '/gallery/case/list',
    method: 'get',
    params: query
  })
}

// 查询图库案例说明详细
export function getCase(galleryCaseId) {
  return request({
    url: '/gallery/case/' + galleryCaseId,
    method: 'get'
  })
}

// 新增图库案例说明
export function addCase(data) {
  return request({
    url: '/gallery/case',
    method: 'post',
    data: data
  })
}

// 修改图库案例说明
export function updateCase(data) {
  return request({
    url: '/gallery/case',
    method: 'put',
    data: data
  })
}

// 删除图库案例说明
export function delCase(galleryCaseId) {
  return request({
    url: '/gallery/case/' + galleryCaseId,
    method: 'delete'
  })
}

// 导出图库案例说明
export function exportCase(query) {
  return request({
    url: '/gallery/case/export',
    method: 'get',
    params: query
  })
}